function check() {
    const userName = document.getElementById("userName").value;
    const password = document.getElementById("password").value;
    if (userName.length === 0) {
        alert("用户名不能为空")
    } else if(password.length < 6){
        alert("密码不能小于6位")
    }else{

    }
}